home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
COMAL
/
B-Book Series
/
(k)b4.d64
/
sec10.2
< prev
next >
Wrap
Text File
|
2007-02-28
|
441b
|
16 lines
0010 DIM NAME$(11) OF 3, TEMP$ OF 3
0020 FOR ITEM:=1 TO 11 DO READ NAME$(ITEM)
0030 FOR START:=1 TO 10 DO
0040 LEAST:=START
0050 FOR TEST:=START TO 11 DO
0060 IF NAME$(TEST)<NAME$(LEAST) THEN LEAST:=TEST
0070 ENDFOR TEST
0080 SWAP
0090 ENDFOR START
0100 PROC SWAP
0110 TEMP$:=NAME$(START)
0120 NAME$(START):=NAME$(LEAST)
0130 NAME$(LEAST):=TEMP$
0140 ENDPROC SWAP
0150 DATA "JIM","BEN","ZOE","PAT","VAL","KEN","RON","HAL","LEN","ALF","TOM"